package study6;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class ListTest {
    public static void main(String[] args) {
        int[] data = {1,3,5,7,9,10,10,13};
        List<Integer> list = new ArrayList<>();
        for (int i : data) {
            list.add(i);
        }
        System.out.println(list);
        // for-each遍历集合
        for (int temp : list) {
            System.out.print(temp + " ");
        }
//        System.out.println(list.contains(10));
//        System.out.println(list.get(0));
    }
}